package com.wtwd.campus.service;

import com.wtwd.campus.common.RespEntity;
import com.wtwd.campus.service.entity.DeviceInfo;
import com.wtwd.campus.service.entity.DeviceLog;
import com.wtwd.campus.service.serviceImpl.WebRemoteServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author mjy
 * @date 2022/03/16
 * @description
 */
@FeignClient(value = "ManagerBackStageService" ,fallback = WebRemoteServiceImpl.class)
public interface WebRemoteService {


    @PostMapping("/webH5-manage-device-log/addDeviceLog")
    RespEntity addDeviceLog(@RequestBody DeviceLog deviceLog);

    @GetMapping("/device/queryDeviceInfoByImei/{imei}")
    DeviceInfo queryDeviceInfoByImei(@PathVariable("imei") String imei);


}
